home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8618 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: bigblue.pvv.unit.no!toriver
  2. From: toriver@pvv.unit.no (Tor Iver Wilhelmsen)
  3. Newsgroups: comp.lang.misc,comp.lang.c,comp.lang.pl1
  4. Subject: Re: GOTO controversy
  5. Date: 5 Mar 1996 12:51:42 GMT
  6. Organization: or.gan.i.za.tion, n., ... 5. a body of persons organized for some end or work. (Webster)
  7. Message-ID: <4hhdcu$43p@due.unit.no>
  8. References: <rcshlds.1.000A6705@mailserv.mta.ca> <Dn8pJ8.nqs@emi.net> <4grt4e$8fg@goanna.cs.rmit.EDU.AU>
  9. NNTP-Posting-Host: bigblue.pvv.unit.no
  10. Originator: toriver@bigblue.pvv.unit.no
  11.  
  12. rav@goanna.cs.rmit.EDU.AU (++           robin) writes:
  13. [original code example deleted for brevity, see
  14. <URL:news:Dn8pJ8.nqs@emi.net> for details]
  15.  
  16. >
  17. >Is there any reason why the GOTOs can't be replaced by
  18. >the particular action routine?
  19.  
  20. As he said, backtracking. The alternative would be to include yet another
  21. function call in each successive if-sentence, making the code ugly.
  22. Using gotos, the code _can_ be made to express the intended flow much
  23. better, as in his example.
  24.  
  25. Are there any other languages than Prolog that implement a "machine" for
  26. backtracking?
  27.  
  28. - Tor Iver
  29. -- 
  30. Tor Iver Wilhelmsen <toriver@pvv.unit.no> Approx. M. Sc. in CS from NTH, Norway 
  31. Siviling. Tor I. Wilhelmsen // c/o ESD Nordic // Postboks 226 // 1411 Kolbotn
  32. All opinions above invisible unless expressed or put in a blender. Whatever.
  33. Info: http://www.pvv.unit.no/~toriver/  Member of The Software Workshop, NTNU
  34.